﻿using Redis_Client;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Redis_Client.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class RadisController : ControllerBase
    {
        /// <summary>
        /// Redis测试
        /// </summary>
        /// <returns></returns>
        [Route("Redis")]
        [HttpGet]
        public ActionResult Redis()
        {
            var redisResult = RedisClient.redisClient.GetStringKey("srdfvghjbn");
            return Ok(new { code = "200", res = new { msg = redisResult.ToString() } });
        }


    }
}
